<?php
	include_once("../model/Acesso.class.php");
	include_once("../model/BancoDeDados.class.php");
	include_once("../model/Mensagem.class.php");
	$acesso = new Acesso();
	$codigoPagina = "3";
	if ($acesso->verificaPermissaoUsuario($codigoPagina)){
?>
<html>
<head>
<title>SIADNET</title>
<link href="../arquivosExtra/estilo.css" rel="stylesheet" type="text/css">
<style type="text/css">
	body{
		background-color:#FFFFFF;
		background-image:none;
	}
</style>
<script language="javascript" src="../arquivosExtra/funcoesJavaScript.js"></script>
</head>

<body topmargin="0" leftmargin="0">
<table width="100%" border="2" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#CCCCCC" class="letraCabecalho">SIG-INGECAMP- Sistema de Gerenciamento Geral - INGECAMP - Via Internet</td>
  </tr>
  <tr>
    <td height="21" align="center"> 
	<form action="../control/controlAlteraSenha.php" method="post" name="form1" target="">
        <table width="100%" border="0" cellspacing="0">
          <tr> 
            <td height="57" valign="bottom"><table width="100%" border="0" cellspacing="0">
                <tr> 
                  <td height="21" colspan="5" align="center" class="letraCampo"><img src="../imagens/logo.jpg" width="569" height="96"></td>
                </tr>
                <tr> 
                  <td height="22" valign="bottom">&nbsp;</td>
                  <td colspan="2" valign="middle">&nbsp;</td>
                  <td valign="middle">&nbsp;</td>
                  <td valign="bottom">&nbsp;</td>
                </tr>
                <tr> 
                  <td width="12%" height="39" valign="bottom">&nbsp;</td>
                  <td width="61%" valign="middle"> <div align="right"> 
                      <input type="button" name="Submit2" value="Pagina Principal" class="botaoUsuario2" onClick="Redireciona()">
                    </div></td>
                  <td width="2%" valign="middle">&nbsp;</td>
                  <td width="11%" valign="middle"><div align="center"> 
                      <input type="button" name="Submit223" value="Logoff" class="botaoUsuario2" onClick="formLogoff()">
                    </div></td>
                  <td width="14%" valign="bottom">&nbsp;</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="50%" border="2" cellspacing="0" cellpadding="0">
          <tr> 
            <td bgcolor="#CCCCCC" class="letraCabecalho">Altera&ccedil;&atilde;o 
              de Senha</td>
          </tr>
          <tr> 
            <td height="96" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td width="45%" align="right" class="letraCampo"> Senha Atual:</td>
                  <td width="55%" height="40"> <label> 
                    <input name="senha" type="password" id="senha" size="15" maxlength="15" class="caixaTexto">
                    </label></td>
                </tr>
                <tr> 
                  <td align="right" class="letraCampo">Nova Senha:</td>
                  <td height="40"> <label> 
                    <input name="novasenha" type="password" id="novasenha" size="15" maxlength="15" class="caixaTexto">
                    </label> </td>
                </tr>
                <tr> 
                  <td align="right" class="letraCampo"><p>Confirmar NovaSenha:</p></td>
                  <td height="40"> <label> 
                    <input name="novasenha2" type="password" id="novasenha2" size="15" maxlength="15" class="caixaTexto">
                    </label></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td height="25" align="right" valign="top"> <table width="100%" border="0" cellspacing="0">
                <tr> 
                  <td width="48%" align="right"> 
                    <input type="submit" name="Submit" value="Alterar" class="botoes">
                  </td>
                  <td>&nbsp;</td>
                  <td width="48%"> <input type="button" name="Submit3" value="Cancelar" class="botoes" onClick="Redireciona()"> 
                  </td>
                </tr>
              </table></td>
          </tr>
        </table>
        <p>&nbsp;</p></form>
	</td>
  </tr>
  <tr>
    <td height="24" bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="0">
        <tr> 
          <td align="right"><table width="100%" border="0" cellspacing="0">
              <tr> 
                <td width="302" align="right"> <input name="textfield" type="text" class="informacoesLogin" value="Usu&aacute;rio:  <?php $x = $acesso->getLoginUsuarioLogado(); echo("$x"); ?>" readonly="readonly"> 
                </td>
                <td width="17">&nbsp;</td>
                <td width="144"><input name="textfield2" type="text" class="informacoesLogin" value="Entrada &agrave;s:  <?php $y = $acesso->getHoraAcesso(); echo("$y"); ?>" readonly="readonly"></td>
                <td width="17">&nbsp;</td>
                <td width="303"> <input name="textfield22" type="text" class="informacoesLogin" value="Data: <?php $z = $acesso->getDataAcesso(); echo("$z"); ?>" readonly="readonly"> 
                </td>
              </tr>
            </table> </td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<?php
}else{
			$msg = new Mensagem();
			$msg->informaMensagem(005,$acesso->getPaginaPrincipal());
		}
?>
